/**
 * Created by Weizehua on 2017/1/17.
 */
import {RequestService} from "../../core/RequestService";
import {Injectable} from "@angular/core";

@Injectable()
export class LoginRequest {
    constructor(private request: RequestService) {
    }

    async login(username: string, password: string): Promise<any> {
        await this.request.get('/login', {username: username, password: password});
    }
}
